<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="CunhuoNavCtrl"></ul>
<div class="set_box">
	<h1 class="set_title"><!--配货单详情-->{{language.TIPS_INVENTORY_PICKING_ORDER_DETAIL}}</h1>
	<div class="set_cont add_page">
		<form class="add_form">
			<p class="title">
				<!--单据信息-->{{language.TIPS_INVENTORY_DOC_INFORMATION}}
			</p>
			<table class="djxx_table">
				<tbody>
					<tr>
						<td class="name"><!--单号-->{{language.TIPS_INVENTORY_ODD_NUMBER}}:</td>
						<td class="val">{{init_record.record_code}}</td>
						<td class="name"><!--日期-->{{language.TIPS_INVENTORY_DATE}}:</td>
						<td class="val">{{init_record.record_time}}</td>
					</tr>
					<tr>
						<td class="name"><!--店铺-->{{language.TIPS_INVENTORY_SHOP}}:</td>
						<td class="val">{{init_record.shop_name}}</td>
						<td class="name"><!--发货方-->{{language.TIPS_INVENTORY_SHIPPER}}:</td>
						<td class="val">{{init_record.store_name}}</td>
					</tr>
					<tr>
						<td class="name"><!--数量-->{{language.TIPS_INVENTORY_NUM}}:</td>
						<td class="val" style="border-bottom:1px dashed #ddd;">
						<input ng-model="init_record.num" readonly>
						</input></td>
						<td class="name"><!--总价-->{{language.TIPS_INVENTORY_TOTAL_PRICE}}:</td>
						<td class="val" style="border-bottom:1px dashed #ddd;">
						<input ng-model="init_record.money" readonly>
						</input></td>
					</tr>
					<tr>
						<td class="name"><!--备注-->{{language.TIPS_INVENTORY_REMARK}}:</td>
						<td colspan="3"></td>
					</tr>
					<tr>
						<td class="name"><!--更新时间-->{{language.TIPS_INVENTORY_UPDATE_TIME}}:</td>
						<td colspan="3">{{init_record.lastchanged}}</td>
					</tr>
				</tbody>
			</table>
		</form>
		<form class="add_form">
			<p class="title">
				<!--明细信息-->{{language.TIPS_INVENTORY_DETAIL_INFORMATION}}
			</p>
			<div class="search">
				<input class="search_input" type="tel" ng-model="input_keywords"/>
				<button class="search_btn" ng-click="search_goods(input_keywords);">
					<!--搜索-->{{language.ACT_SEARCH}}
				</button>
			</div>
			<table class="mxxx_table">
				<thead>
					<tr>
						<th><!--货号-->{{language.TIPS_INVENTORY_GOODS_NUM}}</th>
						<th><!--品名-->{{language.TIPS_INVENTORY_GOODS_NAME}}</th>
						<th><!--数量-->{{language.TIPS_INVENTORY_NUM}}</th>
						<th><!--建议订单数-->{{language.TIPS_INVENTORY_SUGGEST_ORDER}}</th>
						<th><!--单价-->{{language.TIPS_INVENTORY_UNIT_PRICE}}</th>
						<th><!--折扣-->{{language.TIPS_INVENTORY_DISCONT}}</th>
						<th><!--金额-->{{language.TIPS_INVENTORY_MONEY}}</th>
						<th><!--操作-->{{language.TIPS_INVENTORY_OPERATE}}</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="g in temp_detail track by $index">
						<td>{{_detail[g.SkuCode].sku}}</td>
						<td>{{_detail[g.SkuCode] | language_filter_show:'goods_name'}}</td>
						<td>{{_detail[g.SkuCode].num}}</td>
						<td>{{_detail[g.SkuCode].advise_num}}</td>
						<td>{{_detail[g.SkuCode].price}}</td>
						<td>{{_detail[g.SkuCode].zhek}}</td>
						<td>{{_detail[g.SkuCode].money}}</td>
						<td><button class="btn_edit" ng-click="edit(_detail[g.SkuCode]);"><!--编辑-->{{language.TIPS_REDACT}}</button>
						<button class="btn_del" ng-click="del_sku(_detail[g.SkuCode].index,$index);"><!--删除-->{{language.TIPS_DELECT}}</button></td>
					</tr>
				</tbody>
			</table>
		</form>
		<p class="btn_wrap">
			<button type="button" class="btn" value="{{language.TIPS_UPLOAD}}" ng-click="record_upload();">
				<!--上传-->{{language.TIPS_UPLOAD}}
			</button>
		</p>
	</div>
	<bs-num-keyboard></bs-num-keyboard>
</div>